package com.aceona.octopus;

import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.FutureTask;

/**
 * 
 * @author kelvin.zhang
 *
 */
public class AppDemo {

	/**
	 * @param args
	 * @throws InterruptedException 
	 */
	public static void main(String[] args) throws InterruptedException {
		while(true){
			
		}
//		ExecutorService service = Executors.newFixedThreadPool(300);
////		FutureTask<String> task = new FutureTask<String>(new Callable<String>() {
////
////			@Override
////			public String call() throws Exception {
////				while(true){
////					System.out.println("*****");
////				}
////				return "";
////			}
////		
////		});
//		System.out.println("********");
//		for(int i=0;i<300;i++){
//			Thread.sleep(200);
//			System.out.println(i);
//			final int num = i;
//			service.submit(new Runnable() {
//				
//				@Override
//				public void run() {
//					while(true){
//						
//					}
////					System.out.println(num+"***********");
//				}
//			});
//		}
//		System.out.println("********");
	}

}
